package com.example.knife4j.demo.controller;

import com.example.knife4j.demo.param.User;
import io.swagger.annotations.*;
import org.springframework.web.bind.annotation.*;

@Api(tags = "02-示例模板-不同像响应结果",value = "备注")
@RestController
@RequestMapping("example02")
public class Example02Controller {

    @ApiOperation(value = "01-hello接口",notes = "备注")
    @ApiResponses({
            @ApiResponse(code=400,message="请求参数没填好"),
            @ApiResponse(code=404,message="请求路径没有或页面跳转路径不对")
    })
    @GetMapping("hello")
    public String hello(){
        return "Hello World";
    }


}
